﻿using Cmp.Web.Common;
using Cmp.Web.IRepository;
using Cmp.Web.IService;
using Cmp.Web.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cmp.Web.Service
{
    /// <summary>
    /// 挂号信息接口
    /// </summary>
    public class RegisterService : IRegisterService
    {
        private readonly IRegisterProvide registerProvide;
        public RegisterService(IRegisterProvide provide)
        {

            registerProvide = provide;
        }
        public Task<RegisterInfo> GetRegisterInfoByRegisterNumber(string RegisterNumber, out ExceptionAll exception)
        {
            return registerProvide.GetRegisterInfoByRegisterNumber(RegisterNumber, out exception);
        }

        public Task<List<RegisterInfo>> GetRegisterInfoListByPatientId(string PatientId, string RegisterTime, out ExceptionAll exception)
        {
            return registerProvide.GetRegisterInfoListByPatientId(PatientId, RegisterTime, out exception);
        }

        public Task<List<RegisterInfo>> GetRegisterInfoListByTime(string RegisterTime, out ExceptionAll exception)
        {
            return registerProvide.GetRegisterInfoListByTime(RegisterTime, out exception);
        }

        public Task<bool> RegisterConfirm(RegisterInfo register, out ExceptionAll exception)
        {
            return registerProvide.RegisterConfirm(register, out exception);
        }

        public Task<string> RegisterPre(RegisterInfo register, out ExceptionAll exception)
        {
            throw new NotImplementedException();
        }
    }
}
